package com.dlc.shop.seckill.api.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author LGH
 */
@Data
@Schema(description = "秒杀确认订单参数")
public class ConfirmParam {

    @NotNull(message = "产品数量不能为空")
    @Min(value = 1,message = "产品数量不能为空")
    @Schema(description = "产品数量" ,requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer prodCount;

    @NotNull(message = "用户地址id")
    @Schema(description = "用户地址id" ,requiredMode = Schema.RequiredMode.REQUIRED)
    private Long addrId;

    @NotNull(message = "秒杀商品skuId")
    @Schema(description = "秒杀商品skuId" ,requiredMode = Schema.RequiredMode.REQUIRED)
    private Long seckillSkuId;

    @Schema(description = "推广员使用的推销卡号" )
    private String distributionCardNo;
}
